package HashMap_Stu;
import java.util.*;
public class HashMapDemo {

	public static void main(String[] args) {
		
		HashMap_Stu s1 = new HashMap_Stu("111",1);
		HashMap_Stu s2 = new HashMap_Stu("1111",2);
		HashMap_Stu s3 = new HashMap_Stu("1111",3);
		
		Map<String,HashMap_Stu> map = 
				new HashMap<String,HashMap_Stu>();
				
		map.put("吴彦祖", s1);
		map.put("陈冠希", s2);
		map.put("我是你爸爸", s3);
		
		Set<Map.Entry<String, HashMap_Stu>> set = 
				map.entrySet();
		for(Map.Entry<String, HashMap_Stu> mapp : set) {

			System.out.println(mapp.getKey());
			System.out.println
			(mapp.getValue().getName()+","+mapp.getValue().getAge());
		}
		
		
		
		
		

	}

}
